<?php

/**
 * @author Watanabex
 * @copyright 2011
 DB class
 */
class DB{
	private static $instance = null;
	private static $dsn;
	private static $user;
	private static $password;
	private static $_DEBUG = true;
	
	private function __construct(){}  
	
	private function __clone(){}
	
	public function getInstance(){		
		if(!self::$instance){
			self::$instance = new PDO("mysql:host=localhost;dbname=masmedio", "root", "root");
//		self::$instance = new PDO("mysql:host=editormm.db.5525057.hostedresource.com;dbname=editormm", "editormm", "eHu1n4uT4");
//		self::$instance = new PDO("mysql:host=editormm.db.5525057.hostedresource.com;dbname=editormm", "editormm", "rEYBsOyZ3p");
		}
		return self::$instance;
	}
}